{{extend './layout.htm'}}

{{block 'header'}}
        <div class="container jumbotron">
            <h1>{{cate.cate_name}}</h1>
            <p>{{cate.description}}</p>
        </div>
{{/block}}

{{block 'content'}}
<div class="container row">
    <main class="main">
        <div class="list">
            {{each list item}}
            <dl class="list-item {{item.thumb && 'thumb'}}">
                <dt><h3 class="title"><a href="{{url(':article', {id: item.id})}}">{{item.title}}</a></h3></dt>
                <dd>
                    {{@item.thumb && '<a class="image" href="'+url(':article', {id: item.id})+'"><img src="'+item.thumb+'" /></a>'}}
                    {{item.description}}
                </dd>
                <ul>
                    <li>时间: {{item.add_time | dateFormat 'YYYY-mm-dd'}}</li>
                    <li>浏览: {{item.click}}</li>
                    <li>关键词: {{item.keywords}}</li>
                </ul>
            </dl>{{/each}}
        </div>
        {{if pagination}}<hr class="m-hr" />{{/if}}
        {{@pagination}}
    </main>
    {{include './aside.htm'}}
</div>
{{/block}}